# coding=utf-8
import requests

headers = {
    "User-Agent": "Mozilla/5.0 (Linux; Android 5.1.1; Nexus 6 Build/LYZ28E) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Mobile Safari/537.36"
}
proxies = {
    "http": "http://118.24.89.122:1080"
}
response = requests.get("http://www.baidu.com", headers=headers, proxies=proxies)
print(response.status_code)
